package com.zxyankh.raft.dto;

import com.alibaba.fastjson.JSON;

/**
 * @author ankh
 * @since 04.11.2017
 */
public class ServerIpPortDto {

    private String ip;
    private int rpcPort;
    private int httpPort;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getRpcPort() {
        return rpcPort;
    }

    public void setRpcPort(int rpcPort) {
        this.rpcPort = rpcPort;
    }

    public int getHttpPort() {
        return httpPort;
    }

    public void setHttpPort(int httpPort) {
        this.httpPort = httpPort;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
